const mongoose=require('mongoose');

let MoviesSchema=new mongoose.Schema({
    name:String,
    author:String,
    price:Number
});
//创建模型对象  对文档操作的封装对象
let MoviesModle=mongoose.model('movies',MoviesSchema);

module.exports=MoviesModle;



